﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProductsByCategory>" %>
<%@ Import Namespace="MvcContrib.Pagination"%>
<%@ Import Namespace="MvcContrib.UI.Pager"%>
<%@ Import Namespace="MvcContrib.UI.Grid"%>
<%@ Import Namespace="Webshop20.Presentation"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<%= Html.Grid(Model.Products)
        .Columns(
            column =>
                {
                    column.For(p => p.Name).Named("Produkt");
                    column.For(p => p.Description).Named("Beschreibung");
                    column.For(p => p.NetPrice).Named("Preis");
                }
        )
        .Empty("Keine Treffer")
        .Attributes(style => "width:100%")
 %>
 
 <%= Html.Pager(Model.Products) %>

</asp:Content>
